package com.night.administration.mapper;

import com.night.common.entity.administration.Classes;

import java.util.List;

/**
 * @ClassName: mapper
 * @Description: //班级mapper
 * @author: LZJ
 * @date: 2022/10/18-19:47
 * @version: v1.0
 */
public interface ClassMapper {
    //增加班级
    void insert(Classes classes);

    //查询所有班级
    List<Classes> getAll();

    //通过专业查询班级
    List<Classes> getClassByMajor(int majorId);

    //通过课程查询班级
    List<Classes> getClassByCourse(int courseId);
}
